﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using FarseerGames.FarseerPhysics.Factories;
using FarseerGames.FarseerPhysics.Dynamics;

namespace Warlock.GameStuff.Spells
{
    delegate void SpellCreatedEventHandler(BaseSpell sender, SpellCreatedEventArgs e);

    /// <summary>
    /// Basisklasse fuer alle Spells
    /// </summary>
    class BaseSpell : PhysicsSprite
    {
        public BaseSpell(Vector2 position, int radius, int mass)
        {
            body = BodyFactory.Instance.CreateCircleBody(MainGameScreen.PhysicsSimulator, radius, mass);
            geom = GeomFactory.Instance.CreateCircleGeom(MainGameScreen.PhysicsSimulator, body, radius, 100);
            Position = position;
        }
        public override void LoadContent(ContentManager content)
        {
            //Test Sprite
            Texture = content.Load<Texture2D>("Resources\\Menu\\MenuItemSelected");
        }
    }
}